/*
 * @Description: Description
 * @Author: wning
 * @Date: 2022-12-01 16:22:31
 * @LastEditors: Andy
 * @LastEditTime: 2023-02-14 16:52:59
 */

import i18n from '@/common/lang'

export const columns = [
  {
    label: i18n.t('auth.interface.apiName'),
    width: 'auto',
    prop: 'apiName',
    fixed: true
  },
  {
    label: i18n.t('auth.interface.apiUrl'),
    minWidth: 110,
    width: 'auto',
    prop: 'apiUrl',
    fixed: true
  },
  {
    label: i18n.t('auth.interface.perms'),
    width: 'auto',
    prop: 'perms',
    fixed: true
  },
  //   {
  //     label: '接口描述',
  //     prop: 'remark',
  //     width: 130
  //   },

  {
    label: i18n.t('auth.interface.developer'),
    prop: 'developer',
    width: 'auto'
  },
  {
    label: i18n.t('auth.interface.state'),
    prop: 'state',
    width: 140
  }
]
export const typeOption = [
  { value: 1, label: '模块' },
  { value: 2, label: '接口' }
]
export const stateOption = [
  { value: 0, label: '否' },
  { value: 1, label: '是' }
]
export const actions = [
  {
    key: 'edit',
    text: i18n.t('common.edit'),
    permissions: 'upms:Interface:update'
  },
  {
    key: 'delete',
    text: i18n.t('common.delete'),
    permissions: 'upms:Interface:delete'
  }
]
